* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow: hidden;
}

#box {
  position: absolute;
  height: 100%;
  width: 100%;
}

$downBoxHeight: 120px;
$sentBtnBoxHeight: 40px;

#up {
  padding-bottom: $downBoxHeight;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #F5F5F5;

  $headerHeight: 40px;
  .header {
    position: relative;
    left: 0;
    height: $headerHeight;
    line-height: $headerHeight;
    box-shadow: 0 2px 5px #888888;
    text-align: center;
    font-weight: bold;

    .icon {
      float: right;
      width: 30px;
      margin-top: 5px;
      margin-right: 5px;
      height: 33px;
      z-index: 999;
    }
  }

  #chatList {
    overflow: auto;
    flex: 1;
    transition: all 1s ease;
    //margin-bottom: $downBoxHeight;
  }
}

#down {
  margin-top: -$downBoxHeight;
  height: $downBoxHeight;
  background: #FFF;
  border-radius: 3px;
  padding: 5px 8px 0 8px;

  textarea {
    //border: 0;
    padding: 5px;
    width: 100%;
    height: $downBoxHeight - $sentBtnBoxHeight;
  }

  .sendBtnBox button {
    float: right;
    padding: 2px 7px;
    font-size: 16px;
  }
}

#shader {
  position: absolute;
  height: 100%;
  width: 100%;
  #memberList {
    padding: 5px;
    float: left;
    background: #FFF;
    position: relative;
    height: 100%;
    box-shadow: 0 0 15px #888888;
    width: 260px;
    z-index: 100;
    transition: all 0.5s ease;
    overflow: scroll;
    .header {

    }
  }
}

.u-item {
  padding: 5px;
  .icon {
    width: 15px;
    height: 15px;
  }
  .name {
    font-weight: bold;
  }
}

.layui-m-layer {
  z-index: 99999 !important;
}

.left {
}

$borderColor: #888;
.chat-item.left {
  margin-top: 25px;
  .name {
    margin-left: 5px;
    vertical-align: top;
  }
  .content-box {
    margin-top: -38px;
    margin-left: 49px;
    .arror {
      display: inline-block;
      float: left;
      margin-left: 10px;
      margin-top: 20px;
      width: 10px;
      height: 10px;
      -moz-transform: rotate(45deg);
      -webkit-transform: rotate(45deg);
      border: 1px solid $borderColor;
    }

    .content {
      padding: 5px;
      position: relative;
      margin-left: -5px;
      display: inline-block;
      margin-top: 10px;
      max-width: 60%;
      border: 1px solid $borderColor;
      border-radius: 3px;
      background: #fff;
      z-index: 10;
      word-break: break-word;

      .arror-helper {
        position: absolute;
        display: inline-block;
        width: 3px;
        height: 12px;
        left: -2px;
        top: 8px;
        display: inline-block;
        background: #fff;
      }
    }
  }
}

.chat-item.right {
  overflow: auto;
  margin-top: 16px;
  position: relative;
  .name {
    display: block;
    text-align: right;
    margin-right: 56px;
  }
  .avatar {
    float: right;
  }
  .content-box {
    margin-top: -38px;
    .arror {
      display: inline-block;
      position: absolute;
      right: 51px;
      top: 35px;
      width: 10px;
      height: 10px;
      -moz-transform: rotate(45deg);
      -webkit-transform: rotate(45deg);
      border: 1px solid $borderColor;
    }

    .content {
      float: right;
      padding: 5px;
      position: relative;
      margin-right: 9px;
      display: inline-block;
      margin-top: 25px;
      max-width: 60%;
      border: 1px solid $borderColor;
      border-radius: 3px;
      background: #fff;
      z-index: 10;
      word-break: break-word;

      .arror-helper {
        position: absolute;
        display: inline-block;
        width: 3px;
        height: 12px;
        right: -2px;
        top: 8px;
        display: inline-block;
        background: #fff;
      }
    }
  }
}

.name.ban {
  font-style: italic;
  color: #ccc;
}

.layui-m-layercont {
  .modify-name {
    width: 100%;
    padding: 10px 0;
  }
}